package _2025_4_14;

import sun.nio.ch.Interruptible;

import java.io.*;

public class demo1 {
    public static void main(String[] args) throws IOException {
        System.out.println(File.separator);
        System.out.println(File.pathSeparator);
        System.out.println(File.pathSeparatorChar);

        File file2 = new File("D:/FlFile/test/hello.txt");
        InputStream inputStream=new FileInputStream(file2);
        while (true){
            int b = inputStream.read();
            if (b == -1) {
                // 代表⽂件已经全部读完
                break;
            }
            System.out.printf("%c", b);
        }


    }
}
